package com.zhangsheng.exception;

/**
 * @author 张晟
 * @version 1.0
 * @date 2023/2/23 11:29
 */
public class BusinessException extends RuntimeException {

    private Long code;

    private String message;

    public BusinessException(Long code, String message) {
        this.code = code;
        this.message = message;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
